﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GUI
{
    public partial class DangXuat : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string _req = Request.QueryString["action"];
            if (_req != null)
            {
                if (_req.Equals("dangxuat")) // Trường hợp đăng xuất
                {
                    if (Session["NhanVien"] != null)
                        Session["NhanVien"] = null;
                    else if (Session["KhachHang"] != null)
                        Session["KhachHang"] = null;

                    Response.Redirect("Default.aspx");
                }
            }
        }
    }
}